package com.zmm.util.document;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 接口参数
 * @author 900045
 * @description:
 * @name IdoParam
 * @date By 2021-10-26 15:19:43
 */
public class IdoParam implements Serializable {

	/**  */
	private static final long serialVersionUID = 1L;

	private String            name;

	private Class<?>          type;

	private String            description;

	private String            version;

	private boolean           required;

	/** 是否是路径参数   @pathVariable  */
	private boolean           pathVariable;

	//对象参数及期所包含的实际参数 

	private boolean           object;

	private List<IdoParam> params;

	public void addParam(IdoParam param) {

		if (params == null) {
			params = new ArrayList<>();
		}
		params.add(param);

	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Class<?> getType() {
		return type;
	}

	public void setType(Class<?> type) {
		this.type = type;
	}

	public boolean isRequired() {
		return required;
	}

	public void setRequired(boolean required) {
		this.required = required;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public boolean isObject() {
		return object;
	}

	public void setObject(boolean object) {
		this.object = object;
	}

	public List<IdoParam> getParams() {
		return params;
	}

	public void setParams(List<IdoParam> params) {
		this.params = params;
	}

	public boolean isPathVariable() {
		return pathVariable;
	}

	public void setPathVariable(boolean pathVariable) {
		this.pathVariable = pathVariable;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}
}
